package com.ydche;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;


@SpringBootApplication
public class Application  {

    private static RpcServer thriftServer;

    public static void main(String []args){
        //java -jar bz_rpc.jar --spring.profiles.active=prod
        ApplicationContext context = SpringApplication.run(Application.class, args);
        thriftServer = context.getBean(RpcServer.class);
        thriftServer.run();
    }

}
